﻿<controls:ChildWindow x:Class="TelecoSystems.Modules.Customers.Views.MapView"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:m="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl"   
           Width="640" Height="460" 
           HasCloseButton="True"
           Title="Address on the Map">
    <controls:ChildWindow.Resources>
        <ControlTemplate x:Key="PushpinTemplate" TargetType="m:Pushpin">
            <Border Width="150" m:MapLayer.PositionOrigin="BottomLeft" Height="35" Opacity="1" CornerRadius="6" BorderBrush="#FF13A3D7" BorderThickness="2">
                <Border.Background>
                    <LinearGradientBrush>
                        <GradientStop Color="#FFC8EDFA" Offset="0"></GradientStop>
                        <GradientStop Color="#FF82D5F4" Offset="0.5"></GradientStop>
                        <GradientStop Color="#FFBFEAF9" Offset="1"></GradientStop>
                    </LinearGradientBrush>
                </Border.Background>
                <StackPanel Orientation="Vertical">
                    <TextBlock FontSize="9" Width="Auto" Foreground="Black" Margin="1" TextAlignment="Center" Text="{TemplateBinding Content}" />
                    <TextBlock FontSize="9" Width="Auto" Foreground="Black" Margin="1" TextAlignment="Center" Text="{TemplateBinding Tag}" />
                </StackPanel>
            </Border>
        </ControlTemplate>
    </controls:ChildWindow.Resources>
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <m:Map Grid.Row="0" x:Name="MiniMap" Width="600" Height="400" Mode="Road" CredentialsProvider="AiiLAjhC0C8f6YSP1qqizKnD9m6scyDIyfaU4RpEbTnbs9jMPyxQmcQro7BvNjyr" />
        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>